<!DOCTYPE html>
<html>

<head>

<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">

<title>Playonline</title>

<!-- Bootstrap Core CSS -->
<link href="/newplayonline/style/css/bootstrap.min.css" rel="stylesheet">

<!-- Optional theme -->
<link href="/newplayonline/style/css/bootstrap-theme.min.css"
	rel="stylesheet">


<!-- 
	<style type="text/css">
		.modal-body {
			position: static;
			padding-bottom: 18px;
		}
	</style>
 -->
<style type="text/css">
.jumbotron {
	margin-top: 70px;
}
</style>
</head>

<body ng-app="myApp" ng-controller="adminBolao">
	<div ng-include src="'/newplayonline/page/menu.html'"></div>

	<div id="wrap">
		<div id="main" class="container clear-top">
			<div class="row">
				<div class="jumbotron">
					<form action="" name="bolaoForm" class="form-horizontal"
						method="post">
						<div class="form-group">
							<label for="inputNome" class="control-label col-xs-2">Tipo
								de Jogo</label>
							<div class="col-xs-6">
								<select id="tipoDeJogo" ng-model="tipoDeJogo"
									class="form-control" required="" class="form-control">
									<option value="1">Mega Sena</option>
									<option value="2">Quina</option>
									<option value="3">Loto Mania</option>
									<option value="4">Dupla Sena</option>
									<option value="5">Loto Fácil</option>
								</select>
							</div>
						</div>
						<div class="form-group">
							<label for="inputIdentificadorGrupo"
								class="control-label col-xs-2">Identificador(Grupo)</label>
							<div class="col-xs-6">
								<input id="inputIdentificadorGrupo" name="identificadorgrupo"
									ng-model="identificadorGrupo" ng-minlength=3 ng-maxlength=20
									required class="form-control">
							</div>
							<div class="error"
								ng-show="bolaoForm.identificadorgrupo.$dirty && bolaoForm.identificadorgrupo.$invalid">
								<small class="error" ng-show="bolaoForm.identificadorgrupo.$error.required">
									Your name is required. </small>
									 <small class="error"
									ng-show="bolaoForm.identificadorgrupo.$error.minlength"> Your name
									is required to be at least 3 characters </small> 
									<small class="error" ng-show="bolaoForm.identificadorgrupo.$error.maxlength"> Your name
									cannot be longer than 20 characters </small> 
							</div>
							<div class="form-group">
								<label for="inputDtSorteio" class="control-label col-xs-2">Data
									Sorteio</label>
								<div class="col-xs-6">
									<input id="inputDtSorteio" ng-model="dtSorteio"
										class="form-control" ui-date>
								</div>
							</div>
							<div class="form-group">
								<label for="inputQtdCotas" class="control-label col-xs-2">Quantida
									de Cotas</label>
								<div class="col-xs-6">
									<input id="inputQtdCotas" ng-model="qtdCotas"
										class="form-control">
								</div>
							</div>
							<div class="form-group">
								<label for="inputValorCota" class="control-label col-xs-2">Valor
									Cota</label>
								<div class="col-xs-6">
									<input id="inputValorCota" ng-model="valorCota" ui-valor
										class="form-control">
								</div>
							</div>
							<div class="form-group">
								<label for="inputQtdNumerosMarcado"
									class="control-label col-xs-2">Quantidade de numeros
									marcado</label>
								<div class="col-xs-6">
									<input id="inputQtdNumerosMarcado" ng-model="qtdNumerosMarcado"
										class="form-control">
								</div>
							</div>
							<div class="form-group">
								<label for="inputSeqObrigatoria" class="control-label col-xs-2">Sequencia
									Obrigatoria</label>
								<div class="col-xs-6">
									<input id="inputSeqObrigatoria" ng-model="seqObrigatoria"
										class="form-control">
								</div>
							</div>
							<div class="form-group">
								<label for="inputSeqIgnorada" class="control-label col-xs-2">Sequência
									ignorada</label>
								<div class="col-xs-6">
									<input id="inputSeqIgnorada" ng-model="seqIgnorada"
										class="form-control">
								</div>
							</div>
							<div class="form-group">
								<label for="inputQtdJogos" class="control-label col-xs-2">Quantidade
									de Jogos</label>
								<div class="col-xs-6">
									<input id="inputQtdJogos" ng-model="qtdJogos"
										class="form-control">
								</div>
							</div>
							<div class="form-group">
								<div class="col-xs-offset-2 col-xs-10">
									<input type="submit" name="submit" id="submit" value="Enviar"
										class="btn btn-primary" ng-click="adicionarBolao();">
								</div>
							</div>
					</form>

				</div>

				<div class="jumbotron" ng-show="mostrar">
					<table class="table table-striped table-hover ">
						<thead>
							<tr>
								<th>Tipo de Jogo</th>
								<th>Identificador(Grupo)</th>
								<th>Quantidade</th>
								<th>Valor cota</th>
								<th>Ação</th>
							</tr>
						</thead>
						<tbody ng-repeat="bolao in boloes">
							<tr>
								<th>Mega Sena</th>
								<td>{{bolao.identificadorGrupo}}</td>
								<td>{{bolao.qtdCotas}}</td>
								<td>{{bolao.valorCota}}</td>
								<td><a href="#">???</a></td>
							</tr>
						</tbody>
					</table>
				</div>
			</div>
		</div>
	</div>

	<!--Criar Pagefooter  -->
	<div ng-include src="'/newplayonline/footer/'"></div>

	<!-- PARA FAZER MASCARA FUNCIONAR ANGULAR JS/	-->
	<script src="/newplayonline/javascript/recursos/jquery-1.2.6.pack.js"></script>
	<script
		src="/newplayonline/javascript/recursos/jquery.maskedinput-1.1.4.pack.js"></script>

	<script type="text/javascript"
		src="https://ajax.googleapis.com/ajax/libs/angularjs/1.0.7/angular.js"></script>

	<script type="text/javascript"
		src="/newplayonline/javascript/control/angular-route.js"></script>


	<script type="text/javascript"
		src="/newplayonline/javascript/control/adminBolao.js"></script>

</body>

</html>